package com.ruoyi.jihuo.constant;

public class TaoApiConstant {

    public static final String THIRD_PARTY_URL = "http://mx-api.hongytds.com/taobao/api/v2/rest.htm";

    /**
     * 查询出售中的商品 收费 可用
     * https://open.taobao.com/v2/doc#/apiFile?docId=18&docType=2
     */

    public static final String GET_ITEMS_ON_SALE_API = "taobao.items.onsale.get";

    // 外层 items_onsale_get_response
    public static final String GET_ITEMS_ON_SALE_RESPONSE = "items";

    /**
     * 上架商品 收费 可用
     * https://open.taobao.com/api.htm?docId=53972&docType=2
     */
    public static final String UP_SHELF_ITEMS_API = "alibaba.item.operate.upshelf";

    public static final String UP_SHELF_ITEMS_RESPONSE = "alibaba_item_operate_upshelf_response";

    /**
     * 下架商品 收费 可用
     * https://open.taobao.com/api.htm?docId=53971&docType=2
     */
    public static final String DOWN_SHELF_ITEMS_API = "alibaba.item.operate.downshelf";

    public static final String DOWN_SHELF_ITEMS_RESPONSE = "alibaba_item_operate_downshelf_response";

    /**
     * 获取商品发布规则 免费 可用
     * https://open.taobao.com/api.htm?docId=23257&docType=2#scopes
     */
    public static final String GET_ADD_PRODUCT_SCHEMA_API = "tmall.product.add.schema.get";

    // 外层 tmall_product_add_schema_get_response
    public static final String GET_ADD_PRODUCT_SCHEMA_RESPONSE = "add_product_rule";

    /**
     * 使用Schema文件发布一个产品 免费 可用
     * https://open.taobao.com/v2/doc#/apiFile?docType=2&docId=23260
     */
    public static final String ADD_PRODUCT_API = "tmall.product.schema.add";

    // 外层 tmall_product_schema_add_response
    public static final String ADD_PRODUCT_RESPONSE = "add_product_result";

    /**
     * 产品信息获取schema获取 免费 可用
     * https://open.taobao.com/v2/doc#/apiFile?docId=23565&docType=2
     */
    public static final String GET_PRODUCT_SCHEMA_API = "tmall.product.schema.get";

    // 外层 tmall_product_schema_get_response
    public static final String GET_PRODUCT_SCHEMA_RESPONSE = "get_product_result";

    /**
     * 查询商品信息 收费 可用
     * https://open.taobao.com/v2/doc#/apiFile?docId=24625&docType=2
     */
    public static final String QUERY_ITEM_INFO_API = "taobao.item.seller.get";

    // 外层 item_seller_get_response
    public static final String QUERY_ITEM_INFO_RESPONSE = "item";

    /**
     * 删除商品到回收站 免费 可用
     * https://open.taobao.com/v2/doc#/apiFile?docId=53970&docType=2
     */
    public static final String DELETE_ITEM_API = "alibaba.item.operate.delete";

    public static final String DELETE_ITEM_RESPONSE = "alibaba_item_operate_delete_response";

    /**
     * 提交商品   for 分销铺货 免费 已经用不了了
     * https://open.taobao.com/v2/doc#/apiFile?docId=71228&docType=2
     */
    public static final String SUBMIT_ITEM_DISTRIBUTE_API = "alibaba.item.publish.distribute.submit";

    public static final String SUBMIT_ITEM_DISTRIBUTE_RESPONSE = "alibaba_item_publish_distribute_submit_response";

    /**
     * 提交商品 可用
     * https://open.taobao.com/v2/doc#/apiFile?docId=53962&docType=2
     */
    public static final String SUBMIT_ITEM_API = "alibaba.item.publish.submit";

    // 外层 alibaba_item_publish_submit_response
    public static final String SUBMIT_ITEM_RESPONSE = "item_id";

    /**
     * 获取商品发布规则信息 for 分销铺货 免费 已经用不了了
     * https://open.taobao.com/v2/doc#/apiFile?docId=71231&docType=2
     */
    public static final String GET_SUBMIT_ITEM_SCHEMA_DISTRIBUTE_API = "alibaba.item.publish.schema.distribute.get";

    public static final String GET_SUBMIT_ITEM_SCHEMA_DISTRIBUTE_RESPONSE = "alibaba_item_publish_schema_distribute_get_response";

    /**
     * 获取商品发布规则信息 for 官方原版 免费 可用
     * https://open.taobao.com/v2/doc#/apiFile?docId=53943&docType=2
     */
    public static final String GET_SUBMIT_ITEM_SCHEMA_API = "alibaba.item.publish.schema.get";

    // 外层 alibaba_item_publish_schema_get_response
    public static final String GET_SUBMIT_ITEM_SCHEMA_RESPONSE = "result";

    /**
     * 查询商家被授权品牌列表和类目列表 收费 可用
     * https://open.taobao.com/v2/doc#/apiFile?docId=161&docType=2
     */
    public static final String GET_ITEMS_AUTHORIZED_API = "taobao.itemcats.authorize.get";

    // 外层 itemcats_authorize_get_response
    public static final String GET_ITEMS_AUTHORIZED_RESPONSE = "seller_authorize";

    /**
     * 图片空间上传接口 收费 可用
     * https://open.taobao.com/v2/doc#/apiFile?docType=2&docId=140
     */
    public static final String UPLOAD_PICTURE_API = "taobao.picture.upload";

    // 外层 picture_upload_response
    public static final String UPLOAD_PICTURE_RESPONSE = "picture";

    /**
     * 获取用户下所有模板  收费
     * https://open.taobao.com/api.htm?docId=10916&docType=2&scopeId=11860
     */
    public static final String TAOBAO_DELIVERY_TEMPLATES_GET_API = "taobao.delivery.templates.get";

    // 外层 picture_upload_response
    public static final String TAOBAO_DELIVERY_TEMPLATES_GET_RESPONSE = "delivery_templates";
    //淘宝物流API调用的url
    public static final String TAOBAO_LOGISTICS_API_URL = "http://gw.api.taobao.com/router/rest";
    public static final String TAOBAO_LOGISTICS_HTTPS_API_URL = "https://eco.taobao.com/router/rest";

}
